package com.sgb.kjwl.model.entity.manage;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

public class TheEnterpriseOfEntityForManageList extends TheEnterpriseOfEntity{

    @Override
    public String getIndustryCategoryOneName() {
        if (super.getIndustryCategoryOneName() == null){
            return "";
        }

        if (super.getIndustryCategoryOneName().length() > 7){
            return super.getIndustryCategoryOneName().substring(0,6)+"...";
        }else {
            return  super.getIndustryCategoryOneName();
        }
    }

    @Override
    public String getIndustryCategoryTwoName() {
        if (super.getIndustryCategoryTwoName() == null){
            return "";
        }

        if (super.getIndustryCategoryTwoName().length() > 7){
            return super.getIndustryCategoryTwoName().substring(0,6)+"...";
        }else {
            return  super.getIndustryCategoryTwoName();
        }
    }

    @Override
    public String getServiceType() {
        if (super.getServiceType() == null) {
            return "";
        }

        if (super.getServiceType().length() > 7){
            return super.getServiceType().substring(0,6)+"...";
        }else {
            return  super.getServiceType();
        }
    }

    @Override
    public String getRegisteredCapital() {
        if (super.getRegisteredCapital() == null) {
            return "";
        }

        if (super.getRegisteredCapital().length() > 7){
            return super.getRegisteredCapital().substring(0,6)+"...";
        }else {
            return  super.getRegisteredCapital();
        }
    }

    @Override
    public String getCompanyType() {
        if (super.getCompanyType() == null) {
            return "";
        }

        if (super.getCompanyType().length() > 7){
            return super.getCompanyType().substring(0,6)+"...";
        }else {
            return  super.getCompanyType();
        }
    }
}
